namespace Front._1120._1120;

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }

    private void menuStrip3_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
    {
        throw new System.NotImplementedException();
    }

    private void button3_Click(object sender, EventArgs e)
    {
        openFileDialog1 = new OpenFileDialog();
        if (openFileDialog1.ShowDialog() == DialogResult.OK)
        {
            string path = openFileDialog1.FileName;
            string realName = Path.GetFileName(path);
            long time = DateTime.Now.Ticks;
            File.Copy(path, "D:\\1120\\"+time+"_"+realName);
            this.pictureBox1.Image = Image.FromFile(path);
        }
    }

    private void button1_Click(object sender, EventArgs e)
    {
        SaveFileDialog saveFileDialog1 = new SaveFileDialog();
        if (saveFileDialog1.ShowDialog() == DialogResult.OK)
        {
            string str = "helloworld";
            File.WriteAllText(saveFileDialog1.FileName, str);
        }
    }

    private void button2_Click(object sender, EventArgs e)
    {
        throw new System.NotImplementedException();
    }


    private void button1_Click_1(object sender, EventArgs e)
    {
        throw new System.NotImplementedException();
    }

    private void button2_Click_1(object sender, EventArgs e)
    {
        throw new System.NotImplementedException();
    }
}